export default {
  state: {
    uname: localStorage.getItem("uname") || " ",
    roleName: localStorage.getItem("roleName") || " "
  },
  mutations: {
    setUsersinfo(state, payload) {
      state.uname = payload.uname;
      state.roleName = payload.roleName;

      // localStorage.setItem("token", payload.token)
      // localStorage.setItem("uname", payload.uname)
      // localStorage.setItem("roleName", payload.roleName)
    }
  },
  getters: {},
  actions: {}
};
